<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>星级评分--第一种实现方式</title>
    <link rel="stylesheet" href="star1.css">
</head>
<body>
    <ul class="rating"id="rating">
        <li class="rating-item" title="很不好"></li>
        <li class="rating-item" title="不好"></li>
        <li class="rating-item" title="一般"></li>
        <li class="rating-item" title="好"></li>
        <li class="rating-item" title="很好"></li>
    </ul>
    <div id="test">111111</div>
    <script type="text/javascript"src="star1.js"></script>
</body>
</html>